/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.coffee.monitor.repository;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.coffee.monitor.entity.DeviceGroup;

public interface DeviceGroupDao extends PagingAndSortingRepository<DeviceGroup, Long> {
	DeviceGroup findByName(String name);
	List<DeviceGroup> findByUserId(Long userId);
}